package com.hhf.job.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@ToString
@EqualsAndHashCode
public class BaseJob {
    @TableId(type = IdType.AUTO)
    private Integer jobId;
    private String jobName;
    private String className;
    private String method;
    private String params;
    private String cron;
    private Integer state;
    private LocalDateTime created;
    private String createdBy;
    /**
     *  任务当前执行状态，0未执行，1正在执行，解决集群环境下任务重复执行问题.
     */
    private Integer execStatus;
    /**
     * 任务下次执行时间.
     */
    private Date nextExecTime;
}
